/*
 * @Description: 
 * @Author: 赵大壮
 * @Date: 2021-12-09 15:37:25
 * @LastEditTime: 2021-12-09 16:20:54
 * @LastEditors: 赵大壮
 */

class DZStringToList {


    initString(str: string) {

       

        var list: number[] = [];

        if (str.nyIsEmpty()) {
            return list
        }

        if (str.indexOf(",") <= 0) {
            list.push(parseInt(str))
            return list
        }

        str.split(",").forEach(item => {
            list.push(parseInt(item))
        });
        return list
    }




}

export default DZStringToList
